import smtplib, urllib2, SimpleHTTPServer, SocketServer

for line in urllib2.urlopen('http://publico.pt'):
    if 'Coelho' in line or 'Jardim' in line or 'Raspadinha' in line:
        print line

# http://www.e-eeasy.com/SMTPServerList.aspx

server = smtplib.SMTP('smtp.cheapnet.it')

try:
    server.sendmail( 'xxx@yyy.com', 'xxx@treta.com', """TESTE""")
    server.quit()

except : pass
PORT = 80000
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("", PORT), Handler)
httpd.serve_forever()
